<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <cpn></cpn>
    <cpn></cpn>
    <cpn></cpn>
</div>

<div id="app2">

</div>
<script src="../js/vue.js"></script>
<script>
  let cpn = Vue.extend({
    template: `
        <div>
            <h2>我是标题</h2>
            <p>我是内容</p>
        </div>
      `
  })
  //Vue.component('cpn', cpn);

  const app = new Vue({
    el: '#app',
    data: {
      messge: '这是信息'
    },
    components: {
      cpn:cpn
    }
  })
  new Vue({
    el: '#app2'
  })
</script>

</body>
</html>